package com.laozhao.framework.snow;

import org.w3c.dom.Node;

public class ItemModel {

	public static final String ATTRIBUTE_ID = "id";
	public static final String ATTRIBUTE_NAME = "name";
	public static final String ATTRIBUTE_ICON = "icon";
	public static final String ATTRIBUTE_DESCRIPTION = "description";
	public static final String ATTRIBUTE_TYPE = "type";
	public static final String ATTRIBUTE_PARAM = "param";
	public static final String ATTRIBUTE_VALUE = "value";
	public static final String ATTRIBUTE_EDIT = "edit";
	public static final String ATTRIBUTE_ACTION = "action";// GET，POST，PUT，DELETE
	public static final String ATTRIBUTE_COMMAND = "command";

	public static final String VALUE_ACTION_CHECK = "check";
	public static final String VALUE_ACTION_EVENT = "event";
	// public static final String VALUE_TYPE_LABEL = "label";
	// public static final String VALUE_TYPE_TEXT = "text(*,*)";
	// public static final String VALUE_TYPE_SELECT = "select()";
	// public static final String VALUE_TYPE_DATE = "date";
	// public static final String VALUE_TYPE_OBJECT = "object:";
	// public static final String VALUE_TYPE_BUTTON = "button";
	// public static final String VALUE_TYPE_BUTTON = "radio";
	public static final String VALUE_EDIT_TRUE = "0";
	public static final String VALUE_EDIT_FALSE = "1";

	private String id;
	private String name;
	private String icon;
	private String description;
	private String type;
	private String param;
	private Object value;
	private boolean edit = false;
	private String action;
	private String command;

	public ItemModel() {

	}

	public ItemModel(String id, String name, String icon, String description,
			String type, String param, Object value, boolean edit,
			String action, String command) {
		this.id = id;
		this.name = name;
		this.icon = icon;
		this.description = description;
		this.type = type;
		this.param = param;
		this.value = value;
		this.edit = edit;
		this.action = action;
		this.command = command;
	}

	// attribute
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	/**
	 * get name
	 * 
	 * @return name
	 */
	public String getName() {
		return name;
	}

	/**
	 * set name
	 * 
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * get icon
	 * 
	 * @return icon
	 */
	public String getIcon() {
		return icon;
	}

	/**
	 * set icon
	 * 
	 * @param icon
	 */
	public void setIcon(String icon) {
		this.icon = icon;
	}

	/**
	 * get description
	 * 
	 * @return description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * set description
	 * 
	 * @param description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * get description
	 * 
	 * @return description
	 */
	public String getType() {
		return type;
	}

	/**
	 * set description
	 * 
	 * @param description
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * get param
	 * 
	 * @return param
	 */
	public String getParam() {
		return param;
	}

	/**
	 * set param
	 * 
	 * @param param
	 */
	public void setParam(String param) {
		this.param = param;
	}

	/**
	 * get value
	 * 
	 * @return value
	 */
	public Object getValue() {
		return value;
	}

	/**
	 * set value
	 * 
	 * @param value
	 */
	public void setValue(Object value) {
		this.value = value;
	}

	/**
	 * get edit
	 * 
	 * @return edit
	 */
	public boolean getEdit() {
		return edit;
	}

	/**
	 * set edit
	 * 
	 * @param edit
	 */
	public void setEdit(boolean edit) {
		this.edit = edit;
	}

	/**
	 * get action
	 * 
	 * @return action
	 */
	public String getAction() {
		return action;
	}

	/**
	 * set action
	 * 
	 * @param action
	 */
	public void setAction(String action) {
		this.action = action;
	}

	/**
	 * get command
	 * 
	 * @return command
	 */
	public String getCommand() {
		return command;
	}

	/**
	 * set command
	 * 
	 * @param command
	 */
	public void setCommand(String command) {
		this.command = command;
	}

	// // attribute
	// /**
	// * get name
	// * @return name
	// */
	// public String getName();
	//
	// /**
	// * set name
	// * @param name
	// */
	// public void setName(String name);
	//
	// /**
	// * get icon
	// * @return icon
	// */
	// public Icon getIcon();
	//
	// /**
	// * set icon
	// * @param icon
	// */
	// public void setIcon(Icon icon);
	//
	// /**
	// * get description
	// * @return description
	// */
	// public String getDescription();
	//
	// /**
	// * set description
	// * @param description
	// */
	// public void setDescription(String description);
	//
	//
	// /**
	// * get description
	// * @return description
	// */
	// public String getType();
	//
	// /**
	// * set description
	// * @param description
	// */
	// public void setType(String type);
	//
	//
	// /**
	// * get param
	// * @return param
	// */
	// public String getParam();
	//
	// /**
	// * set param
	// * @param param
	// */
	// public void setParam(String param);
	//
	//
	// /**
	// * get value
	// * @return value
	// */
	// public Object getValue();
	//
	// /**
	// * set value
	// * @param value
	// */
	// public void setValue(Object value);
	//
	// /**
	// * get edit
	// * @return edit
	// */
	// public boolean getEdit();
	//
	// /**
	// * set edit
	// * @param edit
	// */
	// public void setEdit(Boolean edit);
	//
	//
	// /**
	// * get action
	// * @return action
	// */
	// public String getAction();
	//
	// /**
	// * set action
	// * @param action
	// */
	// public void setAction(String action);
	//
	//
	// /**
	// * get command
	// * @return command
	// */
	// public String getCommand();
	//
	// /**
	// * set command
	// * @param command
	// */
	// public void setCommand(String command);
}
